var express = require('express');
var router = express.Router();
var indexRouter = {};
var user = require('../../../controller/user');

router.post('/login', user.userLogin);

router.post('/logout',user.logout);

router.use(user.checkLogin);

router.patch('/changepwd',user.changepwd);

indexRouter.router = router;
module.exports = indexRouter;